package org.im.service.message.util;

import org.im.service.message.webmsg.WebMessage;

import com.alibaba.fastjson.JSON;

public class MessageUtil {

    public final static String SYSTEM_SENDER_ID = "sys_00001";

    public static WebMessage createMessageFromString(String msg) {
        try {
            return JSON.parseObject(msg, WebMessage.class);
        } catch (Exception e) {
            return null;
        }
    }
}
